from django.shortcuts import render_to_response, get_object_or_404
from django.http import HttpResponseRedirect, HttpResponse
from django.core.urlresolvers import reverse
from django.template import RequestContext
from django.contrib.auth.decorators import login_required
from pprint import pprint
from django.conf import settings

@login_required
def home(request):
	return HttpResponseRedirect(reverse('exams.views.index'))
#    pprint( settings.TEACHERS )
#    pprint( vars( request.user ) )
#    for teacher in settings.TEACHERS:
#        pprint( teacher )
#        if request.user.username == teacher:
#            pprint( "Found teacher" )
#            return HttpResponseRedirect(reverse('exams.views.index'))
#    pprint( "Found student" )
#    return HttpResponseRedirect(reverse('exams.views.index'))
